﻿using Mt.Site.Core.Storage;
using System;
using System.ComponentModel.DataAnnotations;

namespace Mt.Site.Application.FileUpload.Dto
{
    public class UpFileInfoInput
    {
        public Guid Id { get; set; }

        [StringLength(FileObject.MaxTitleLength)]
        public string Title { get; set; }
        [StringLength(FileObject.MaxDescriptionLength)]
        public string Description { get; set; }
        [StringLength(FileObject.MaxLinkUrlLength)]
        public string LinkUrl { get; set; }

        public int Order { get; set; }

        public bool IsActive { get; set; }

        public bool AutoSynchronous { get; set; }
        [StringLength(FileObject.MaxAltLength)]
        public string Alt { get; set; }
        [StringLength(FileObject.MaxScoureLength)]
        public string Source { get; set; }

        public string Alias { get; set; }

        public string CustomKey { get; set; }

        [Required]
        public string FileUrl { get; set; }

        public string PreViewImgUrl { get; set; }
    }
}
